package com.gupaoedu.pattern.decoratorandobserver.demo.observer;

public class ObserverTest {

    public static void main(String[] args) {

        EventBusHolder holder = new EventBusHolder();

        Teacher teacher = new Teacher("tom");

        holder.register(teacher);

        holder.post(new Question("FF", "贾跃亭要黄了？"));


    }
}
